Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAGCTL ERROR: Invalid data. A required field is empty. #76

Open
RalfViellieber opened this issue Nov 29, 2017 · 3 comments
Open

NAGCTL ERROR: Invalid data. A required field is empty. #76

RalfViellieber opened this issue Nov 29, 2017 · 3 comments

Comments

@RalfViellieber
Copy link

Synology DS215j
synagios_0.14.4_jessie_arm.spk
After importing sample configuration (works),
i try to add a new service (to a cloned host)
I get:
NAGCTL ERROR: Invalid data. A required field is empty.
In the protokol i see - "Undefined variable template in index.php line 11357".
[ this is:
foreach( $st as $item ) {
$selected = "";
if( $item["name"] == $template ) $selected = " selected";
print '<option value="'.$item["name"].'"'.$selected.'>'
.$item["name"].'';
}
]

I added manually
myserver.net,svctmpl-lin,check_http,HTTP,,,,,1,,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
to /nagios-chroot/etc/nagios3/objects/local/setup/local_services.setup
and it works.
Any suggestions?

@mclarkson
Copy link
Owner

You might not have set the Description field, probably because it does not have a star next to it indicating a required field in nagrestconf 1.174.5 (It does in the latest version 1.174.7 but this is not released for Synagios yet)

It works for me on both arm and x86 unless I don't set the Description field. (When you added the line manually the description was set to 'HTTP')

@RalfViellieber
Copy link
Author

so little star, so much debugging ;-) Thanks for quick answer :-)
I can ignore the error from apache.log "Undefined variable template in index.php line 11357"?

@mclarkson
Copy link
Owner

Yes, please ignore the error, I get the same error.
I've created a ticket to clean up errors and another one to tell the user exactly which fields are missing!
Thanks for reporting! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants